package com.designpattern.softwaredesignpatternstudy.pdai.observer;

/**
 * @author: Aster
 * @note:
 * @create: 2025-07-16 16:25
 **/
public class StatisticsDisplay implements Observer {

    public StatisticsDisplay(Subject subject) {
        subject.registerObserver(this);
    }
    @Override
    public void update(float temperature, float humidity, float pressure) {
        System.out.println("StatisticsDisplay: " + temperature + " " + humidity + " " + pressure);
    }
}
